import React from 'react'
import {menuRouter} from "../../router/routes"
import {NavLink} from "react-router-dom"
import {routerItem} from "../../interface"
export default function index() {
    return <div className="menu-box">
        {
            menuRouter.map((item:routerItem, idx) => {
                // console.log(item.path)
                return <NavLink key={idx} to={item.path}>{item.name}</NavLink>
            })
        }
    </div>
}
